<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:ClassModifier="internal"
    x:Class="OpenLS.Drawing.UI.Internals.PaperSizeResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Core="clr-namespace:OpenLS.Core;assembly=OpenLS.Core"
    xmlns:Internals="clr-namespace:OpenLS.Drawing.UI.Internals">
    <DataTemplate DataType="{x:Type Core:PaperSize}" x:Key="PaperSizeTemplate">
        <StackPanel>
            <TextBlock Text="{Binding}" FontWeight="Bold"></TextBlock>
            <StackPanel Orientation="Horizontal">
                <TextBlock>
                                            <TextBlock.Text>
                                                <Binding>
                                                    <Binding.Converter>
                                                        <Internals:PaperSizeToWidthConverter/>
                                                    </Binding.Converter>
                                                </Binding>
                                            </TextBlock.Text>
                                        </TextBlock>
                <TextBlock Text=" x "/>
                                        <TextBlock>
                                            <TextBlock.Text>
                                                <Binding>
                                                    <Binding.Converter>
                                                        <Internals:PaperSizeToHeightConverter/>
                                                    </Binding.Converter>
                                                </Binding>
                                            </TextBlock.Text>
                                        </TextBlock>
                                    </StackPanel>
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>